d2c6b1
@@ -97,7 +97,12 @@
public void aggregateInputSelection(
 
       ColumnVector inputVector = batch.cols[this.inputExpression.getOutputColumn()];
 
-      if (inputVector.noNulls) {
+      if (inputVector.isRepeating) {
+        if (inputVector.noNulls || !inputVector.isNull[0]) {
+          iterateNoNullsWithAggregationSelection(
+              aggregationBufferSets, aggregateIndex, batchSize);
+        }
+      } else if (inputVector.noNulls) {
           // if there are no nulls then the iteration is the same on all cases
           iterateNoNullsWithAggregationSelection(
             aggregationBufferSets, aggregateIndex, batchSize);
